package com.jielihaofeng.cachekit;

/**
 * @author Johnnie Wind
 * @description 具体事件处理器的实现类
 * @date 2021/10/25 11:42
 */
public class PrintEventHandler implements IEventHandler {

    private Printer printer = new Printer();

    @Override
    public <T> void handleEvent(Event<T> event) {
        String param = (String)event.getParam();
        printer.print(param);
    }

}
